package com.zh.study.service.iml;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zh.study.dao.UserMapper;
import com.zh.study.pojo.UserEntity;
import com.zh.study.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: zhanghuan
 * @date: 2022/8/13 12:38
 * @description: create it
 */
@Service("userService")
public class UserServiceIml extends ServiceImpl<UserMapper, UserEntity> implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<UserEntity> getUsers() {
        return userMapper.selectList(null);
    }

}
